package com.ohuang.test_compose.page

import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material.TextField
import androidx.compose.runtime.Composable
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember

@Composable
fun LazyColumnAndTextField() {

    LazyColumn() {

        for (i in 0..50) {
            item {
                val text = remember(key1 = i) {
                    mutableStateOf("sss=$i")
                }
                TextField(value = text.value, onValueChange = {
                    text.value = it
                })
            }
        }
    }
}